package org.jeecg.modules.business.enums;

public enum LivingTypeEnum {

//    1，全天；2时租;3自用；4免费；5长租
    ALL_DAY(1,"全天"),
    HOURS_RENT(2,"时租"),
    PERSONAL(3,"自用"),
    FREE(4,"免费"),
    LONG_RENT(5,"长租");
    Integer key;

    String title;

    LivingTypeEnum(Integer key, String title){
        this.key = key;
        this.title = title;
    }
    public Integer getKey() {
        return key;
    }

    public String getTitle() {
        return title;
    }

    public static LivingTypeEnum val(Integer key){
        for(LivingTypeEnum team: values()){
            if(team.key .equals(key)){
                return team;
            }
        }
        return null;
    }
}